package pers.cz.pub;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

/**
 * 测试迭代器
 * @program: PostGirl-panent
 * @description: BusinessMethodProxyer
 * @author: Cheng Zhi
 * @create: 2022-03-01 11:26
 **/
@Configuration
public class BusinessMethodProxyer implements MethodInterceptor {
    @Nullable
    @Override
    public Object invoke(@Nonnull MethodInvocation methodInvocation) throws Throwable {

        System.out.println(methodInvocation.getMethod().getName());
        return null;
    }
}
